package com.cne.gmail.Gmail.dao;

import com.cne.gmail.Gmail.model.UserModel;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserMessageRepository extends MongoRepository<UserModel,String> {
    UserModel findByUserNameAndEmailAddress(String userName,String emailAddress);
    List<UserModel> findByUserName(String userName);
    List<UserModel> findByEmailAddress(String emailAddress);
    UserModel findByAccessToken(String accessToken);
}
